'''
Created on Mar 19, 2016

@author: grind
'''

import urllib.request
import urllib.response
import urllib.error

#url = "http://table.finance.yahoo.com/table.csv?s=300124.sz&a=00&b=01&c=2016"
#url = "http://table.finance.yahoo.com/table.csv?s=000001.ss&a=00&b=01&c=2016"
url = "http://table.finance.yahoo.com/table.csv?s=399001.sz&a=00&b=01&c=2016"
request = urllib.request.urlopen(url)
html = request.read()
details = html.decode("gbk")
print(details)